package com.ruoyi.business.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 T_QUESTION
 * 
 * @author 最爱喝兽奶
 * @date 2022-08-08
 */
public class TQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 问题的内容 */
    @Excel(name = "问题的内容")
    private String context;

    /** 问题的状态 */
    @Excel(name = "问题的状态")
    private String status;

    /** 问题的类型
0-单选
1-多选
2-判断
3-简答 */
    @Excel(name = "问题的类型 0-单选 1-多选 2-判断 3-简答")
    private String type;

    /** 问题对应的考试id */
    @Excel(name = "问题对应的考试id")
    private Long examId;

    /** 题目的分数 */
    @Excel(name = "题目的分数")
    private String score;

    /** 问题的答案，存放答案表的id，多个答案用，隔开 */
    @Excel(name = "问题的答案，存放答案表的id，多个答案用，隔开")
    private String answer;

    /** 题目解析 */
    @Excel(name = "题目解析")
    private String analysis;

    /** 困难度 */
    @Excel(name = "困难度")
    private Integer hard;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContext(String context) 
    {
        this.context = context;
    }

    public String getContext() 
    {
        return context;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setScore(String score) 
    {
        this.score = score;
    }

    public String getScore() 
    {
        return score;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setAnalysis(String analysis) 
    {
        this.analysis = analysis;
    }

    public String getAnalysis() 
    {
        return analysis;
    }
    public void setHard(Integer hard) 
    {
        this.hard = hard;
    }

    public Integer getHard() 
    {
        return hard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("context", getContext())
            .append("status", getStatus())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("examId", getExamId())
            .append("score", getScore())
            .append("answer", getAnswer())
            .append("analysis", getAnalysis())
            .append("hard", getHard())
            .toString();
    }
}
